//权限指令，有该权限则显示
const authDirective = {
  inserted(el, binding, vnode, prevVnode) {
    // console.log('aaaaa', binding)
    // console.log('22222',store.state.userAuthList)
    const authStr = localStorage.getItem('tags');
    //没有该权限，则不显示
    if(authStr.indexOf(binding.value) == -1) {
      el.style.display = 'none';
    }
  },
}

export default authDirective